package com.sausageking.client.merchant.ui;

import java.util.Collection;

import javax.validation.ConstraintViolation;

import com.google.gwt.user.client.ui.IsWidget;
import com.sausageking.shared.Merchant;

public interface MerchantSignupView extends IsWidget {
  void setPresenter(Presenter listener);
  void setMerchant(Merchant merchant);
  Merchant getMerchant();
  String getSearchId();
  void setSearchId(String id);
  String getSearchEmail();
  void setError(Collection<ConstraintViolation<Merchant>> errors);
  void clearError();
  public interface Presenter {
    void submit();
    void search();
    void searchByEmail();
    void goToStickerPlace();
  }
}